// app.ts
App<IAppOption>({
    globalData: {
        areaDict: [],
        literatureDict: [],
        articleDict: []
    },
    onLaunch() {
       
    },
    onShow() {
        const _this = this;
        // 文献字典
        wx.request({
            method: "GET",
            url: 'http://192.168.31.8:3001/api/front/dict-literature-list',
            success(res: any) {
                _this.globalData.literatureDict = res.data.data.data;
            }
        });
        // 文章字典
        wx.request({
            method: "GET",
            url: 'http://192.168.31.8:3001/api/front/dict-article-list',
            success(res: any) {
                _this.globalData.articleDict = res.data.data.data;
            }
        });
        // 区域字典
        wx.request({
            method: "GET",
            url: 'http://192.168.31.8:3001/api/front/dict-region-list',
            success(res: any) {
                _this.globalData.areaDict = res.data.data.data;
            }
        });
    }
})